<?php
/**
 * Created by PhpStorm.
 * User: 86183
 * Date: 2020/5/19
 * Time: 18:37
 */

namespace app\admin\model;


use think\Model;

class Designer extends Model
{
    protected $name='admin';
    protected $pk='id';

    public function worker(){
        return $this->hasMany('Worker','admin_id','id',[],'LEFT');
    }

}